package view;

import javax.swing.*;

public class FileInfoPanel extends JPanel {

    private JTextArea fileInfo;

    private int width = 500;
    private int hight = 200;

    public FileInfoPanel(){
        this(500,200);
    }

    public FileInfoPanel(int width , int hight){
        this.width = width;
        this.hight = hight;
        fileInfo = new JTextArea();

    }

    public void init(){
        add(fileInfo);
    }

    public void setFileInfo(String[] fileinfo){
        for(int i = 0; i < fileinfo.length; i++){
            this.fileInfo.append(fileinfo[i] + "\n");
        }
    }
}
